
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type StoreServiceRequest struct {

	MerId string `json:"mer_id" form:"mer_id"`

	Uid string `json:"uid" form:"uid"`

	Online string `json:"online" form:"online"`

	Account string `json:"account" form:"account"`

	Password string `json:"password" form:"password"`

	Avatar string `json:"avatar" form:"avatar"`

	Nickname string `json:"nickname" form:"nickname"`

	Phone string `json:"phone" form:"phone"`

	AddTime string `json:"add_time" form:"add_time"`

	Status string `json:"status" form:"status"`

	Notify string `json:"notify" form:"notify"`

	Customer string `json:"customer" form:"customer"`

	Uniqid string `json:"uniqid" form:"uniqid"`

}

func (r *StoreServiceRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *StoreServiceRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"mer_id": "required",

		"uid": "required",

		"online": "required",

		"account": "required",

		"password": "required",

		"avatar": "required",

		"nickname": "required",

		"phone": "required",

		"add_time": "required",

		"status": "required",

		"notify": "required",

		"customer": "required",

		"uniqid": "required",

	}
}

func (r *StoreServiceRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *StoreServiceRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *StoreServiceRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
